package cn.jiyun.consumer.client;

import cn.jiyun.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * feign远程调用接口
 */
@FeignClient("user-service")
public interface UserClient {

    @GetMapping("/user/findById/{id}")
    public User findById(@PathVariable("id") Long id);
}
